package cn.com.huzo.model.entities.tech;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 物料需求计划-物料需求明细实体类
 *
 * @author 吴旭
 */
public class MrpLinesResultEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -5564056319257123865L;
    private String LinesId;
    private Long HeaderId;
    private String AssortmentLinesId;
    private Short AssortmentType;                   // 搭配类型 0:无搭配 1:色搭配 2:码搭配 3：色+码搭配
    private String BomLinesId;
    private String StyleNo;
    private Long MaterialId;
    private Short OrderNo;                          // 排列顺序 = 单耗排列顺序
    private String MaterialCode;
    private String MaterialName;                    // 材料名
    private String SupplierName;                    // 供应商
    private String Specification;                   // 规格
    private String YarnCount;                       // 纱支
    private String FabricWidth;                     // 幅宽
    private String GramWeight;                      // 克重
    private Long UomId;
    private String UomName;
    private String MaterialComposition;
    private String MeshBeltOpening;                  // 织带开度
    private String PartOfNeed;                       // 用料部位
    private Double CustomerPieceYardage;             // 客户用量
    private Double FactoryPieceYardage;              // 工厂用量
    private Double SuitCutPieceYardage;              // 套裁用量
    private String MaterialColourNumber;             // 材料色号
    private String MaterialColourName;               // 材料色
    private Long ProductColourId;                    // 成品色
    private String ProductColourNumber;
    private String ProductColourName;
    private Long ProductSizeId;                      // 成品码
    private String ProductSizeName;
    private Integer ProductQuantity;                 // 对应搭配的成品数量
    private Double StockLevels;                      // 库存数
    private Double PlanDemandedQuantity;             // 计划需求量
    private Double PriorDemandedQuantity;            // 提前组料数
    private Double DemandedQuantity;                 // 实际需要量
    private Integer SuitCuttingQuantity;             // 套裁数量
    private Double SuitCuttingDemandedQuantity;      // 套裁需要量
    private String Description;                      // 备注
    private Object SizePieceYardage;                 // 尺码分配情况
    private Object ProductQuantityMemo;              // 打印用生产指示书明细部分每色数量
    private Object ColourSchema;                     // 打印用生产指示书明细部分材料色搭配
    private Object SizeMap;                          // 材料的尺码映射表
    private Long MoHeaderId;                         // 生产指示书ID
    private String Destination;                      // 发货目的地
    private Boolean QuotedFlag;                      // 被采购订单引用标记

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getAssortmentLinesId() {
        return AssortmentLinesId;
    }

    public void setAssortmentLinesId(String AssortmentLinesId) {
        this.AssortmentLinesId = AssortmentLinesId;
    }

    public Short getAssortmentType() {
        return AssortmentType;
    }

    public void setAssortmentType(Short AssortmentType) {
        this.AssortmentType = AssortmentType;
    }

    public String getBomLinesId() {
        return BomLinesId;
    }

    public void setBomLinesId(String BomLinesId) {
        this.BomLinesId = BomLinesId;
    }

    public String getStyleNo() {
        return StyleNo;
    }

    public void setStyleNo(String StyleNo) {
        this.StyleNo = StyleNo;
    }

    public Long getMaterialId() {
        return MaterialId;
    }

    public void setMaterialId(Long MaterialId) {
        this.MaterialId = MaterialId;
    }

    public Short getOrderNo() {
        return OrderNo;
    }

    public void setOrderNo(Short OrderNo) {
        this.OrderNo = OrderNo;
    }

    public String getMaterialCode() {
        return MaterialCode;
    }

    public void setMaterialCode(String MaterialCode) {
        this.MaterialCode = MaterialCode;
    }

    public String getMaterialName() {
        return MaterialName;
    }

    public void setMaterialName(String MaterialName) {
        this.MaterialName = MaterialName;
    }

    public String getSupplierName() {
        return SupplierName;
    }

    public void setSupplierName(String SupplierName) {
        this.SupplierName = SupplierName;
    }

    public String getSpecification() {
        return Specification;
    }

    public void setSpecification(String Specification) {
        this.Specification = Specification;
    }

    public String getYarnCount() {
        return YarnCount;
    }

    public void setYarnCount(String YarnCount) {
        this.YarnCount = YarnCount;
    }

    public String getFabricWidth() {
        return FabricWidth;
    }

    public void setFabricWidth(String FabricWidth) {
        this.FabricWidth = FabricWidth;
    }

    public String getGramWeight() {
        return GramWeight;
    }

    public void setGramWeight(String GramWeight) {
        this.GramWeight = GramWeight;
    }

    public Long getUomId() {
        return UomId;
    }

    public void setUomId(Long UomId) {
        this.UomId = UomId;
    }

    public String getUomName() {
        return UomName;
    }

    public void setUomName(String UomName) {
        this.UomName = UomName;
    }

    public String getMaterialComposition() {
        return MaterialComposition;
    }

    public void setMaterialComposition(String MaterialComposition) {
        this.MaterialComposition = MaterialComposition;
    }

    public String getMeshBeltOpening() {
        return MeshBeltOpening;
    }

    public void setMeshBeltOpening(String MeshBeltOpening) {
        this.MeshBeltOpening = MeshBeltOpening;
    }

    public String getPartOfNeed() {
        return PartOfNeed;
    }

    public void setPartOfNeed(String PartOfNeed) {
        this.PartOfNeed = PartOfNeed;
    }

    public Double getCustomerPieceYardage() {
        return CustomerPieceYardage;
    }

    public void setCustomerPieceYardage(Double CustomerPieceYardage) {
        this.CustomerPieceYardage = CustomerPieceYardage;
    }

    public Double getFactoryPieceYardage() {
        return FactoryPieceYardage;
    }

    public void setFactoryPieceYardage(Double FactoryPieceYardage) {
        this.FactoryPieceYardage = FactoryPieceYardage;
    }

    public Double getSuitCutPieceYardage() {
        return SuitCutPieceYardage;
    }

    public void setSuitCutPieceYardage(Double SuitCutPieceYardage) {
        this.SuitCutPieceYardage = SuitCutPieceYardage;
    }

    public String getMaterialColourNumber() {
        return MaterialColourNumber;
    }

    public void setMaterialColourNumber(String MaterialColourNumber) {
        this.MaterialColourNumber = MaterialColourNumber;
    }

    public String getMaterialColourName() {
        return MaterialColourName;
    }

    public void setMaterialColourName(String MaterialColourName) {
        this.MaterialColourName = MaterialColourName;
    }

    public Long getProductColourId() {
        return ProductColourId;
    }

    public void setProductColourId(Long ProductColourId) {
        this.ProductColourId = ProductColourId;
    }

    public String getProductColourNumber() {
        return ProductColourNumber;
    }

    public void setProductColourNumber(String ProductColourNumber) {
        this.ProductColourNumber = ProductColourNumber;
    }

    public String getProductColourName() {
        return ProductColourName;
    }

    public void setProductColourName(String ProductColourName) {
        this.ProductColourName = ProductColourName;
    }

    public Long getProductSizeId() {
        return ProductSizeId;
    }

    public void setProductSizeId(Long ProductSizeId) {
        this.ProductSizeId = ProductSizeId;
    }

    public String getProductSizeName() {
        return ProductSizeName;
    }

    public void setProductSizeName(String ProductSizeName) {
        this.ProductSizeName = ProductSizeName;
    }

    public Integer getProductQuantity() {
        return ProductQuantity;
    }

    public void setProductQuantity(Integer ProductQuantity) {
        this.ProductQuantity = ProductQuantity;
    }

    public Double getStockLevels() {
        return StockLevels;
    }

    public void setStockLevels(Double StockLevels) {
        this.StockLevels = StockLevels;
    }

    public Double getPlanDemandedQuantity() {
        return PlanDemandedQuantity;
    }

    public void setPlanDemandedQuantity(Double PlanDemandedQuantity) {
        this.PlanDemandedQuantity = PlanDemandedQuantity;
    }

    public Double getPriorDemandedQuantity() {
        return PriorDemandedQuantity;
    }

    public void setPriorDemandedQuantity(Double PriorDemandedQuantity) {
        this.PriorDemandedQuantity = PriorDemandedQuantity;
    }

    public Double getDemandedQuantity() {
        return DemandedQuantity;
    }

    public void setDemandedQuantity(Double DemandedQuantity) {
        this.DemandedQuantity = DemandedQuantity;
    }

    public Integer getSuitCuttingQuantity() {
        return SuitCuttingQuantity;
    }

    public void setSuitCuttingQuantity(Integer SuitCuttingQuantity) {
        this.SuitCuttingQuantity = SuitCuttingQuantity;
    }

    public Double getSuitCuttingDemandedQuantity() {
        return SuitCuttingDemandedQuantity;
    }

    public void setSuitCuttingDemandedQuantity(Double SuitCuttingDemandedQuantity) {
        this.SuitCuttingDemandedQuantity = SuitCuttingDemandedQuantity;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    public Object getSizePieceYardage() {
        return SizePieceYardage;
    }

    public void setSizePieceYardage(Object SizePieceYardage) {
        this.SizePieceYardage = SizePieceYardage;
    }

    public Object getProductQuantityMemo() {
        return ProductQuantityMemo;
    }

    public void setProductQuantityMemo(Object ProductQuantityMemo) {
        this.ProductQuantityMemo = ProductQuantityMemo;
    }

    public Object getColourSchema() {
        return ColourSchema;
    }

    public void setColourSchema(Object ColourSchema) {
        this.ColourSchema = ColourSchema;
    }

    public Object getSizeMap() {
        return SizeMap;
    }

    public void setSizeMap(Object SizeMap) {
        this.SizeMap = SizeMap;
    }

    public Long getMoHeaderId() {
        return MoHeaderId;
    }

    public void setMoHeaderId(Long MoHeaderId) {
        this.MoHeaderId = MoHeaderId;
    }

    public String getDestination() {
        return Destination;
    }

    public void setDestination(String Destination) {
        this.Destination = Destination;
    }

    public Boolean getQuotedFlag() {
        return QuotedFlag;
    }

    public void setQuotedFlag(Boolean QuotedFlag) {
        this.QuotedFlag = QuotedFlag;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof MrpLinesResultEntity)) {
            return false;
        }

        final MrpLinesResultEntity that = (MrpLinesResultEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
